// 单个图片
.page-item {
  width: 148px;
  height: 148px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  object-position: center;
  object-fit: contain;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;

  &:hover .page-btn {
    transform: translateY(0);
  }
}


// 按钮组
.page-btn {
  transform: translateY(-110%);
  transition: 0.1s;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 6px;

  >span {
    color: white;
    font-size: 18px;
    cursor: pointer;

    &:hover {
      color: var(--primaryColor);
    }
  }
}


// 显示为图片
.page-image {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: contain;
}

// 用于带图标的
.page-icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  >img {
    width: 50px;
    margin-bottom: 10px;
  }

  .page-icon-name {
    width: 100%;
    padding: 0 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}


// 点击添加
.page-add {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;

  &::before {
    content: "";
    .page-add-icon-l;
  }

  &::after {
    content: "";
    .page-add-icon-l;
    position: absolute;
    transform: rotate(90deg);
  }

  &:hover {
    border: 1px dashed var(--primaryColor);

    &::before {
      background-color: var(--primaryColor);
    }

    &::after {
      background-color: var(--primaryColor);
    }
  }

  //加号icon
  .page-add-icon-l {
    width: 40%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
}